//
//  NSObject+Hear.h
//  Hear
//
//  Created by mac on 2018/4/26.
//  Copyright © 2018年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ShowPosition) {
    ShowPosition_Center = 1,  // 中间位置
    ShowPosition_Bottom,      // 底部位置
};

@interface NSObject (Hear)

/**
 返回图片
 */
- (UIImage *)getImageWithName:(NSString *)imgname;

/**
 返回URL
 */
- (NSURL *)returnUrlWithString:(NSString *)urlStr;

/**
 提示框
 */
- (void)showMessage:(NSString *)message atPosition:(ShowPosition)position;

/**
 判断手机号码是否合格
 */
- (BOOL)validatePhoneNum:(NSString *)phoneNum;

@end
